<%--
  Created by IntelliJ IDEA.
  User: ？
  Date: 2021/11/8
  Time: 9:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="js/jquery-3.6.0.min.js"></script>
    <script>
        function btn() {

            let  url = "${pageContext.request.contextPath}/helloServlet"


            let params = {
                "method":"show02",
                "username":"zhangsan",
                "password":"123"
            }


            let callBack = function (rel) {
                alert(rel)
            }

            // 发射
            $.post(url,params,callBack)

        }




    </script>

</head>
<body>

<input type="button" value="提交" onclick="btn()">

</body>
</html>
